const mongoose = require('mongoose');

const Schema = mongoose.Schema;

const studentsSchema = new Schema({
    stu_id:{
        type:String,
        unique:true,
        required:true
    },
    stu_name:{
        type:String,
        unique:false,
        required:true
    },
    stu_sex:{
        type:String,
        unique:false,
        required:true
    },
    stu_date:{
        type:Date,
        default:Date.now
    },
    stu_gbf:{
        type:String,
        default:'bobo'
    },
    stu_jg:{
        type:String
    },
    stu_hoppy:Schema.Types.Mixed,
    stu_head_img:{
        type:String
    }
});
const students = mongoose.model('student',studentsSchema);

module.exports = students;